package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 通知公告对象 property_notice
 * 
 * @author ruoyi
 * @date 2025-10-27
 */
public class PropertyNotice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 通知ID */
    private Long noticeId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 推送范围：ALL/BUILDING/UNIT */
    @Excel(name = "推送范围：ALL/BUILDING/UNIT")
    private String targetType;

    /** 目标ID（楼栋/单元，逗号分隔） */
    @Excel(name = "目标ID", readConverterExp = "楼=栋/单元，逗号分隔")
    private String targetIds;

    /** 是否置顶 */
    @Excel(name = "是否置顶")
    private Integer isTop;

    public void setNoticeId(Long noticeId) 
    {
        this.noticeId = noticeId;
    }

    public Long getNoticeId() 
    {
        return noticeId;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setTargetType(String targetType) 
    {
        this.targetType = targetType;
    }

    public String getTargetType() 
    {
        return targetType;
    }

    public void setTargetIds(String targetIds) 
    {
        this.targetIds = targetIds;
    }

    public String getTargetIds() 
    {
        return targetIds;
    }

    public void setIsTop(Integer isTop) 
    {
        this.isTop = isTop;
    }

    public Integer getIsTop() 
    {
        return isTop;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("noticeId", getNoticeId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("targetType", getTargetType())
            .append("targetIds", getTargetIds())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("isTop", getIsTop())
            .toString();
    }
}
